package org.tea.inventory.db.dao;

import org.tea.inventory.db.domain.QuestionDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionDetailMapper {

    /**
     * 根据类型随机获取5条数据
     *
     * @return
     */
    List<QuestionDetail> selectRandom(@Param("sortId")Integer sortId, @Param("num")Integer num);

    List<QuestionDetail> selectRandom2(@Param("num")Integer num);

    List<QuestionDetail> selectByExample(QuestionDetail record);

    int deleteByPrimaryKey(Integer id);

    int insert(QuestionDetail record);

    int insertSelective(QuestionDetail record);

    QuestionDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionDetail record);

    int updateByPrimaryKey(QuestionDetail record);
}
